package com.example.myapplication10;

import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.TextView;

public class ResultActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_result);
        // 获取传递的测试结果
        String result = getIntent().getStringExtra("result");
        TextView tvResult = findViewById(R.id.tvResult);
        tvResult.setText(result);
        findViewById(R.id.btnBack).setOnClickListener(v -> finish());
    }
}